finishes miner script for version 4, fixes some small bugs, makes data uploads exclusively for iPhone/iPod touch