Added comments to errors that I found in the code