Add doxygen comments for resource-encapsulation