Fixes to spatcontrol.R
Merge branch 'master' of https://github.com/cbarbu/spatcontrol