Adding version parsing function and commandline flag.
Adding docstring to git-version.