added switching routines
added some more switching
removed error in SPI timing (PIC to ADF)