added adjustable playback rate, and disabled debugging code