added header dtype, cleaned up get_header()