v0.1.11 - add debug message

reorganize code, fix commands