fixed bugs
made kernel a lambda function
added gp analysis to optimal sttepsize
added stepsize optimizationa