resultDoc function

Helper for consistent documentation of result.