Added Debug; factored out some repeated code; added program.usage