Documentation and input validation updates