Moved some of the vector methods into the vector class and out of vector
calculations, also changed the way vector is stored and updated