Added network connectivity check
Added storage of purhcases on phone, and purchase lookup from stored purchases, if the network is unavailable