Modernized quantizationtools classes.