Add documentation for MetadataService and credentials classes