Got the communication of commands working fully.
Factored out a function to read from SPI.