Added integer methods to Polynomial class.  Made set method more robust.