renamed document.py to latex_document.py, it's less confusing + minor import cleaning