function for spatial dataframes and update tests
Added Example (Rmd), plus some cleanup