added minimal command line arguments checking
added exit code returns of 0 indicating no problem, >0 indicating problem
filename building code made a little more robust
added some verbose text output to see some indication of activity