Updated notes, added some experimental code.