splitting up some modules and created monitor for robot class