Updated cross validate to refine several parameters and explore the bounds on the frequency parameter (it was unbounded).