Sanitize Views class and add docstrings