added latex writeup