Version 0.2

Made alterations to allow for command-line invocation of the script. Not
fully tested.