Refactored dft.py

Moved the dft.py funcitons into seperate ones so each function writes a specific part of
the inputfile. Also changed strchg.grep to default to no flags.