added fn to extract GO terms and assign them to their corresponding gene