PEP8, documentation, and testing of spa action effects