Improved recording capabilities

Added samplerate option
Adde channel option
Bugfixes