Revised ChipKIT code and augmented documentation