Implemented SPI summary. Refactored summary wrappers. Minor fixes.