added limit to battery

Signed-off-by: Evan Gallo <evang10@gmail.com>
merging with Shaun`s edits

Signed-off-by: Evan Gallo <evang10@gmail.com>
added comments throughout

Signed-off-by: Evan Gallo <evang10@gmail.com>
Merge branch 'master' of github.com:evangallo/EECS290Project1