First version of table control

Implement FIRST version of table control (NOT YET COMPLETELY WORKING)