Some small updates on SPI library