Added a episode index.
Merged some functions.