Moves the header to another file, fixes errors