fixed "D function", added tcos-dev debian package

* new changes to D function and a corresponding .rc file
* added the debian tcos-dev package -> whole rewrite in the process