Monomial calculator.
Minor edits.