increased buffer size and updated to use new pifacedigitalio and pifacecommon