Added LatexDoc constructor with a filename parameter. Incomplete commit.