removed todo notice, since the feature is currently not used
added todo
changed get_error_code to get_error with string as return value
added error codes
changed return pointer to const