Added documentation for sanitize method.