Fixed code examples in docs.