PEP8, documentation, testing for spa.Input
Fixed typo in test functions