Completed a very, very messy drawTicks function, added scratch file to figure out error in an earlier version.