Removed now-unused variable
Validated snippet boundaries and length.
Checked boundaries for contents operation also; fixed off-by-one bug.
Added experimental collocations operation.

Add calc=colloc to a hits query to see it in action. Work in progress.