added print statements with messages in case of failure to store a string
representation for a polynomial or in case of failure to append a solution
string to the interface