Adding a validateOptions function and warning/exiting on invalid options
Merge pull request #351 from jklein/master

This is a first stab at #346 - warning on invalid command line options