Refactored plugin, better comments, file_exists checks, LOCAL_DEV definition for plugins_url filter