added battery charge display in terminal script