Revert "Added debugging code, limited variable scope"

This reverts commit c723794bc6813d547317961da37cda5f859bf072.
Added command-line argument for verbose output