code: function addVersionJSONToChangelog(version, changes) {
  	if (!changelog) readChangelog();
  	var entry = '\n\n## ' + version;
  
  	changes.forEach(function(change) {
  		entry += '\n* ' + change.type + ': ' + change.category + ': ' +
  			change.description;
  	});
  
  	var logParts = changelog.split(insertMarker);
  	logParts[0] = logParts[0]
  		.replace(versionMarkerReg, versionMarker.join(version)) + insertMarker;
  	changelog = logParts.join(entry);
  }
docs: This will not to write to file writeToChangelog must be called after