PEP8, tests, and documentation for spa.Cortical