Move request of buffer allocation to open
Initialize properties an variables in a reset function, that can be called in  init and stop
Fix typo
Fix buffer size adjustment when discard the buffer header
Add encoding properties