slight maintainability improvements
drawing both major and minor gridlines
small comment
smarter gridline drawing algorithm