Added mainmenu command. Fixed bugs where font and materials weren't getting appropriately freed