Refactored chromgen.py for clearer usage.
Added version information using a call to git.