Added word wrap to file write feature.