vector set functions return the original vector
corrected formatting
Added some comments
Added major geometry support