added save of results to file