finished formatting of text output.
added remove empty values from metadata result.