Added function to parse output of gen_docs