Added debug option for YATSM
Fixed bug with recalculation of X for new freq