Return added. maxLengthInput should return affected nodes
Negative number checking for threshold parameter
Merge branch 'bugs'
Merge pull request #2 from denismosolov/master

Few features