more coding on tdelays and related libraries

tdelays is not yet functional