Problem
xtype = "q" could be in inverse angstroms or inverse nm. In principle tth could be in angles or radians, though in practice I have never seen it in radians
Proposed solution
have an optional variable xunit. Maybe have default units and always convert to these internally, in whiich case, xunit is only used in the constructor.