Separate subtitles functions from main file. Renamed main program to tsd.py.
Separate chapter functions from main file.
Fixed error if subpen.txt doesn't exist. Improved show.cfg template.
Moved log and notification functions to dedicated file.
Improved code style
Added env
Merge code cleanup and structuration.