added plugin exists check method
updated comments
updated comments