updated word_wrap()
updated write_headers()