added enable parameter for discard handler
defined new linear behavior function
documentation update