added the LaTeX writeup