I have been working on my own set of units for vector mathematics (and other mathematics stuff) for some time. I hope you can scavange something out of it. Everything is provided in the archive. I call it the VectorMachine (or more rednecky VektorMasheeeen).

The included vm.txt file has more details.

http://www.megaupload.com/?d=E5IMBYTM