fourth draft of the api for spi. now with added read/write/test functions