Refactored code, added class raspi_spi_t