Add doc strings
Test all state changes in a loop.