remove unnecessary code that double checks speed input & add javadoc style comment...