LSTDAQ ver0.61

exit(1) needs #include <stdlib.h>