updated def snippet to include visual selection, also added type: statement to docstrings