moved check_flags, added prog_name
Merge pull request #5 from cjhanrahan/master

check_flags moved, prog_name added