Added comments to functions which require comments.

@bsoetaer