added the table making code and removed tmp files