added parameter for sclk speed
removed delay in the transferData method.
build in timeout when spi transfer fails.