Fixes gh-111 gh-182
* add setMaxInactiveIntervalInSeconds * add default value for maxInactiveIntervalInSeconds Fixes gh-105
Fixes #103