minor updates in SCM.R and version of scripts using new set of functions