move printing to _main
whitespace cleanup
clean up docstrings
limit to 100 characters wide
don't print a blank line when there are no results
don't accept partial matches of package names