added firmwareversion check, and parsing pebble bundles

todo: firmware update