add some comments and clean table files