updated main.c and twi.*, shows an example of checking the device IDs