Cleanup; added configurable number of snippets for highlighting; added ws-normalisation of text.