Update main_script.sh

added 3 funtions app_start app_exit and main_menu