Added tests for monomials. Fixed various minor parser issues