Removed cruft from the main method and added comments outlining usage.