improved engine.exportProject(), added engine.canvas.exportCode()