* commit index will be the index of last comitted entry
* (very) minor refactorings