document the robot.js code