Update dft.h

-> mem leaks fixed
-> added comments & func