javadoc'd calculatorlogic