Optimize document & implement plugin CMGC