Update file parser and parser documentation
Improve file parser, text parser documentation and minor refactoring. Update parser writing documentation #1537 (closed) and example parsers.
Improve file parser, text parser documentation and minor refactoring. Update parser writing documentation #1537 (closed) and example parsers.