+ added Condition data type
+ added receiving and answering to commands in json (see: client.py)