Improved the javadoc in MathProblem.