Added AIC, BIC, and Cross-validation

Also, a little cleaning of the rest of the codes.