Completed main() function

Updated the main() function with command line input.  I took the liberty
of adding a few command line arguments that should make testing easier.
All arguments are fully commented at the top of the file.