adds documentation to resource