Minor comment edit
updated comments
renamed var
updated docs