Added a battery capacity graph (fixes #1)