Replaced chunkId with segment throughout
Added javadoc
Added javadoc stylesheet
Fixed javadoc typo