added battery check and play tone