Fixing code samples in documentation.