Dump files in debug mode refs #4