Fix upgrade command.
Add version.
Add diagnose command for trouble shooting.