Update main_script.sh

Redid the whole script. Now it builds a menu and defines 2 other functions