[content]: add some comments and minor dry improvement.