added some notation for clarity and missing methods

Method missing for error handle