Now temporary files are really removed after function was called. Still there is a bug in #33