Added verbosity, include paths, and using getopt

I tried using the uncrustify tool (source code beautifier) to try to fix the formatting issues in this file but it looked like it did more harm than good. I think it messed up st he switch and added these spaces as well.  I wouldn't normally just go through adding spaces between if/for/foreach/while statements and their parenthetical conditions :)