added cross-validation and some graphs