Separated out examples
Separated out functions from SPELT.R