added 'cleanup' call to renderToFile for each tutorial, otherwise destructors on MIC won't be called in 'to-file' mode