add class Table
rearrange code and add some PHPDocs
add composer.json