changed some quantizeing and fixed some bugs in spectral features