A middleware to control NXT models with wiiremote