Finish version command.
Some bugfixes.