Improved documentation
Comment code
sub valid_input