Version to cmdargs

A couple of small bugfixes (or tweaks). And add version option as a command line. You might find the diff in setup.py to be a bit ugly (I do) but I didn't find a nicer way to do this with setuptools. And it seemed like less of an evil than defining version in multiple places.