Endpoint scaling and hysteresis for gwseg.

Activation of eps and hysteresis treatment for gwseg. Also some
additional initialization.
Merge pull request #495 from osae/endscale

Endpoint scaling and hysteresis for gwseg.