Filter out control chars

ASCII Control chars < 0x1f cause the indexer to fail, so they're removed
when creating the document to index.

Also added soem doc comments.