Removed setting P8 pins for output
added code to print errors from SPI