[MOD] TableFormatter

fix some issues and improve usability