Version to 0.9.6.1

split threshold def to 30, max to 300
minor code corrections