added additional functions
added th3, updated tests
added tfile to tests