some refactoring
reverted some loop designs
better handling of commits in the buffer
some fixes to the documentation