Update MainFile

Added heartbeat monitor integration (though it will need to be tested separately so we can determine proper functionality)