more changes to building main menu and some documention