Add formattape.lua, stop tapes on write