Added help_quit function for cleaner code

Created a new function that runs when invalid arguments are used. It is
used for displaying a warning, printing out the help text and quiting
the script.