added documentation in Robot.java