edited documentation
edited input validation