Adds functionality that writes the final transcript to file