Added make_table code and edited parts of session making