Adding in more comments to functions