finished method to generate and summarize cross validation script