writing thesis files