Check if frame 'request' var is string
Add docstrings to functions
Rename function 'sanitize' to 'sanitize_cookie'
Add docstrings to functions
Add some checks for sanitized vars