Added makefiles and LaTeX writeup.