Standardize docstrings
Fix bug when last monomial is constant