finish up plugin and add comments