Send overall data to arduino and a few bug fixes