Add versioning to the program and fix some style issues