added hdr appending method to BCFOrderedWriter and miscellaneous changes to other classes.