add support for tab delimiter
- some re-factoring
-bug fix: don't try to format if table not detected