fixed the unit vector function which was assigning things back to itself... no bueno
a few vector teaks