A fix for an uninitialized variable in the tune tool

The problem would manifest itself when the --store-kernels flag was used on the command line.
Comments were added to clarify a few sections of code.
Fixes #5
Fixes #6