finished iPython notebook, and added memory leak test.