Formatted main file + ported main menu to drawing API