Changed public members of Vec2 to use num instead of double.
Added documentation for toString() and serialize().
Added unitX and unitY constructors to Vec2.
Improved Vec2 documentation.