Updated documentation, added LaTeX documentation.