Minor Changes

Changed function to support Y-axis as increasing as position moves down,
ie. (0,0) is the top left corner.

Also added some comments.