Add TCP protocol argument documentation.
Update replication documentation.
Improve log entry toString() formatting.
Ensure log buffers are properly cleared during removeBefore/removeAfter operations.