changed output function to allow for OrganismID Null/None values