added task termination determining agent execution loop;
MapSpec a little bit broken;