Added some vector functions, added the test model, and improved some documentation.