Wrap script contents in main() function to assist unit testing.
Add '-h' or '--help' option.