batterie -> battery

Remove unused variables
No whitespace inside parentheses
Add missing whitespace around arithmetic operator
Fix indentation
Remove trailing whitespaces