Update agent to support multiple imps and to have an everything is fine timer. Add comments to explain what is what.