#1 corrected a bug for the library, minor improvements to quality models.