End of writeup updated. Need to finish code examples.