implemented handling of task statuses, introduced protobuf serialization of config parameters, added help option, code cleanup, comments