Fix bug in y values of DeviceDataEvent. Add more documentation. Add tests for Device and DeviceConnection.