Refactors Builder interface to be less latex implementation specific. TexBuilder now has more latex specific methods
Can now do simple topLevel definitions with class of document
Adds test that rejects non-wellformed document toplevel