Updated PIC code and added tapping sample