added source comments and descriptions for command-line arguments
Make error messages more informative and tweak parsing of channels