Improve MAD code output buffer overflow control
remove old unused regression test batch files