Change episodic memory to use episode class

Refactor the episodic memory to use the episode class instead of
strings. Also remove curious reset.