Fixed a bug in calculating points.

Negative values would throw off calculations completely.
Add X and Y axis.
Add documentation