Massive overhaul for 2.0

Rewrote pretty much the entire script. It's more concise and  is ready
for a (future) set of user-provided optional configuration arguments
Grammar