Spotted what looks like a few typos in the documentation...

* fixed code samples for initializing type filters
* corrected a few typos