mv codes to commands and myGlobal
new class myMsg
fix a bug.

'q' child-command in new() failed from the 2nd time
test push branch