corrected clock and tightened tolerance. Added SPI.