Corrected bug in make.files.for.cpp

Also added ScanTrio.R