added docstring to statusfmt function