Refactored project into more granular modules, and added unit-test for segmenter.