Revert "Revert "Input file generator and EMS test scripts""

This reverts commit d91fd3b2890c51d4596793836c30bc638ffeabc9.