Name functions to make debugging easier
Correctly toggle menu item state
Name more functions
Change font
Make line an object to hold the type and number properties
Make sure number is an integer