Flatten nested output@fullresults structure, add caching for phenotypes, update documentation.