Clean up.

Added comments and added some folder structures to the plugin.