Draft r class to handle returns value OR an std::error_code.
Add r class documentation.