Pass output sample rate as parameter to the recorder
Some refactoring of the audio recorder and made it more modular to be usable in other applications. Added comprehensive documentation about it.