write up modified and some more code added.
some more cross validation code.