BufferRecorder::writeToFile() only writes up to the current write position, not the entire buffer
documenting and tidying up BufferRecorder