Update README and add some inline documentation.