Adding optimized file output and dio card memory writing. This is should be the final functional version of the timedelay optimizer