this function will be called within processWraps and processInserts
function processFile(file) {
		var changed = true;

		while(changed && !file.processed) {
			changed = false;
			changed = processWraps(file);
			changed = processInserts(file);
		}
		file.processed = true;
	}