refactor table printing
Merge pull request #19 from cbyn/alex

refactor table printing