Remove trailing whitespace.
Remove leading indentation for main program.
Aggregate module requirements at the top.
Use Getopt::Long for option handling.
Merge pull request #2 from scfc/pu/getopt

Pu/getopt