Menus added, compilation fixed and some functions added