Changes to documentation and input validation.