Split the code up
Add a function to remove comments from the TeX sources
Parse TeX when initializing a <chapter>
Add the filter methods