battery status script
some minor changes
add battery status