Added waitForBattery and readme