multi agent added;
various small fixes;