made spi_dev a variable, added debug sample output