Ported functionality from arduinoFinder.php

duh. it's not like it was hard.