Added option parsing, help message

No longer entirely self contained, but optionparser is in the ruby stdlib now, so it can run with no gems installed.