https://github.com/svic/gaia/tree/master/apps/nfc-demo is where the original code lies.