changed default zmax to None
Made sigma_gen intial step in generate