improved parse_table(), added slice() and slices_by_len()