refacoring & documentation for TeXpp