Moved code snippets into documents.