Final code for summer term. Adds KEGG functionality