Added logging, error handline, command line argument names, and command line help. Overall script cleanup.