Refactored plugins common and added documentation