E5: added some commands. E6: added some commands and fixed agentCount

All continued work will be on E6. E5 is obsolete.