support degree symbol
fix issue raised from compiler warning
improve comments, invalidate more items, improve debugging messages