Updated comments on second function