Moved  offset calculations to helper functions

-added wrappers for horizontal and vertical offset
-added underlying math function
Finished formatting the math for offsets

-changed magic numbers to constants
-formatting of the math if separate in separate functions
Fixed formatting of comments. Finished assignment 5