Added subscribe function
Merge pull request #13 from thomric2/master

Added the getEnergyLatest (subscribe) function.