Added comments to lkplug along with general code cleanups.