add function to measure battery consumption
write battery levet to a file
Merge branch 'framegrab' of https://github.com/VisualizingSensorInformationOfMobVideo/VisualizingSensorData into framegrab