addad some functions in cmd.cpp
Merge branch 'master' of https://github.com/psi46/psi46test