* commit index will be the index of last comitted entry
* (very) minor refactorings
Merge pull request #1 from myarichuk/master

at startup of the node, commit index will have the index of last comitted entry