changed naming of some spi functions and added way to set speed