fixed gbif functions, updated slightly the appendix code