Fix document and fix selfupgrad command.