fixed minor bug
converted unnecessary usage of 3D vectors to 2D
wrapped vector math types and functions
improved nomenclature of geometry types