Reworked class setup and added functions to get information about the device battery.