added --version switch.
Merge pull request #310 from mathematicalcoffee/feature-version-switch

added --version switch, fixes #303