refactor output(), add output_quotes()
move max_matches logic into parse_args()
explicit imports for NamedTemporaryFile
simplify tab completion
fix output_quotes() calls
fix tab completion