update documentation and remove unused private attribute.