added the option to record buffer values at arbitrary checkpoints +
testing the functionality