Add pndman_device_detect to header and whitespace