Refactoring of GetTableCommand class and some docs