fleshed out core functions
scanForDevices()