Added error item in model
Updated doc
Added exception type
Added constant for error code 1
Switched instruction order
Implemented data retrieval  (mono-valued) + error handling