added error handling and license text to --help message