Fix padding issue at end of subevent and include writing a log file

Now, any data words after the end of a subevent are skipped since they
are just padding. Also introduced writing a log file with the basic
settings used to convert files.