fixed indentation; added episodic rewards; made it easier to test different accuracies