check_simresults function

A function that checks if a call to simulation function worked