improve formatting of api documentation