added more comments

added comment to second function