added header comments to functions in general.php