Clean up docs and add test for result data type