Removed extra lines. Added deprecation warnings for y_mean_