added some javadoc for the motor regulator