add missing quality set
use int, not double checks/values
Merge pull request #3 from mscdex/master

misc fixes