added documentation and small changes on the table layout