Adding program name into header and trailer of log files.

Closes #27