Updated docs and wrapped plugin setups in function.