Fix documentation problems
Remove unused import
Fix ParseTreePatternMatcher.compile allowing invalid syntax
Merge pull request #458 from sharwell/tweaks

Tweaks