added functions to decode the status word; adjusted get-bat-level util to use them