Replace for with map in error handling + add docs

Documentation for implicit wrappers, to make the use cases more clear