First implementation of a helper function for generating documentation