Updated notes and code. Still some work to do.