Battery monitor added
Some bugs fixed
Auto decision implemented