added comments on Error class