function documentation beautification