Fix line endings and update some of the vect math

See title