streamlined loading headers into one function (load_headers), changed names of related functions