Added GenEpisodes

Added code GenEpisodes() methods to Main as well as a helper method.
Also added a unit test to MainTest
Merge remote-tracking branch 'origin/master'