added comments to the error class