Added framework for running a series of episodes (trials)
Cleaned up App with helper functions