eliminated setwd() for portability and fixed CS

updated functions.R to include clathrates and permafrost into CS