adding unit tests...
slight clean up / refactor of vector library and more tests