Added detailed commenting to all plugin files