Fixed constants and timings in PIC

Working production code at this point