JavaDoccing and test development for math module