Fixed a memory leak in the menu system and rearranged it
Added an input library
Added a readme