dfa mp - writes output file
dfa mp - bug fixes