Added LOO cross-validation
various cleanup