Script updates. Cross-validation performed. I hate matlab.