added the result formatter enhancements + test + doc