Add description of t funciton
Clean up
Add tests of language selection