fix a bug in spi
modify gitignore file
modify ignore