Added battery graph activity. Fixed some bugs.