cleanup and add more args to tabcomp.py
Improved documentation.