Fixed DDEfunction

Errors on the DDEfunction are fixed. The dead time on the old code(line
17 and 19) were hard coded.