Added screen brightness control.
Change to standard way of checking if on battery or AC.
Indent comment.