added more info to docs
LaTeX doc to format code