Fixed typos.
Added parsers for TeX commands beginchapter and endchapter.
Use upper-case S for Section.