Revert "modify console output content"

This reverts commit 7274a1e1cc92ba1579986fd29fdf6feffcf50473.

Conflicts:
	index.js
roll back segDoc() algorithm