added header comments to functions.