close the file in the end
more readable to_write list in function parse_file_header()
expand tab size to 20

change function order

print a space line after a tag header