rewrite the const block
gofmt
let the caller check the errors for indexsegments
gofmt
some code cleanup, comments removed, etc
filter some words when tokenizing.

no need to add stopwords to the index, and words that are either too small
or too long.
change signature for the index function
use goroutine to query and grep