small changes to match our style guide. Removed bogus battery capacity return parameter that assumed a battery is 0V when dead (it isn't)