added Sam's Burfell turbine optimization code