added constructors to table.h and changed names
added constructors