added functionality to rtd and dtr functions, v0.1 released