updated battery voltage checking, with comments :)