put docs in docstring
check for junk input