Updated main class with new ip, created event controller.