Added debug print statements in resource monitor and moved credentials for dispatcher to be variables, likely read from a configuration file beforehand