made digest method, token length and interval length configurable
Merge remote-tracking branch 'origin/master'