Fixed addEpisode function and made the episode class better optimized