Defined all tables and adjusted document