Editing header details; fixing endpagination problem in read_text function.