Improve the comment in chainoptions

The comments in the chainoptions has been significantly improved. And also
a function is added for pretty printing the error message for user
UpdateError exceptions.