Final versions of code/writeup