Fixed some of vector2D

fixed problems with Vector2D being immutable and ensured all variables
are accessed using the correct accessors.