Added in piece wise linear modelling option, and PWL elevation only.