Working DFT

Fixed error in number_of_files subroutine.
"Always initialize variables after declaring them!!! "