added tb_clans command
refactored karma.py
refactored and added some options to typo.py