Fixed error if subpen.txt doesn't exist. Improved show.cfg template.
Moved log and notification functions to dedicated file.