changed permissions and made minor tweaks to main plug-in.