Bug fixes. Some adjustements to buffer trimming. Checkpointing while debugging ack backpropagation