writeFile: Initialize data to empty string if undefined.

Also add the start command but comment it out until complete.