Dumbed down & updated PiMiner originally written by Adafruit Industries