Added read function and circular buffer for storing the latest data.
Successfully tested.