small comments and error messages corrections

I made a few changes to the comments and error messages to make them clearer to understand.