Cleaning up and making directmap and TDL be able to call functions with name space (function identifiers having dots '.')