Addressed some memory leaks in messaging system

Solves #125
Fixed preferredBufferDuration documentation

Closes #75