Added header handling for output protein files