Added usage statement and other command line checks