added some debug output and changed samplerate settings in demo apps