Added documents and renamed this* vars for closures.