Minor refactor

Agents now contain a world and the method generateSensorimotorSequence. 

Updated tests.