Merge pull request #2 from sasabot/master

Lets merge!
fix type
add thereshold check, good
Merge branch 'master' of https://github.com/Currentor/Aria
revised some bugs in aria_utils