Add vars reference document. Fix #5220