Moved _functions into alphabetical order; Moved else-if in the _main function into alphabetical order; Global Vars are in alphabetical order by var type