Added --version support in the same way --help works.

* Users are now able to set the version string explicitly, and call printVersion to show it.