Add functions for output (QString return). Add output to file for attenuated sequences