Rewrite command line parsing, change -ht to -H

Update version and license information
Add usage and help
Change garbage file, don't create directory
Minor changes