made header class for 1D function
fixed y dependencies of 1d fit function