Update docs to latest version, clean up code snippets a bit