Added dynamic buffer to ReadBuffer
Tidy Up some things