Menu

Adds menu system.
Try to define all the variable at the start of the function.