Added Spi Functionality through class and variable exposure

Not sure scope is used in this function