Enhanced configurability

Bundled up some configuration settings to the top of the script, and
added a bunch of toggles to turn specific bits of input on and off.
Left the output of the original script in tact as it was.