Constrained ticks to grid
Multiple changes:

Added ticknum & dot variables
Fixed axis location
Fixed comments