Added .d, .mk to gitignore
Increased mempool allocation
Made "battery is connected" into function