moved debugging functions out of community_simulator and into error_checking_functions