bug fixes throughout, added ability to clear message and result files