updated IDSS a bit to allow for options when calculating distance. Add R code for analyzing space of PFG