Data directions were declared wrong, so I reverted to how they were done before.  Added the ability to initialize the Spi registers differently