Added option to set monomial order to library interface. The interface is now more general than the actual capabilities of the code, so not everything actually works yet.