"Added simulated data functions, Few updates to tune.R"