Working copy of controller with no class structure(ip is set to 127.0.0.1,should be changed later). It includes interrupt and avoidance of debouncing