Cleaned up shortail.py

Removed old stuff and commented out crap. Grouped code better.