added tally command
better command parsing