[add] error codes
[add] default values for client constructor
[fix] change quit mode to work in class mode, only stdin if run(), timeouts