tstack documentation is added. test routines are combined with assertions. test routines for tstack