Added Javadoc and organized Vars.
Fixed the using of speed autofixing. It passed a JUnit testing.