Moved all file name creation functions into the same helper class.
Introduced file creation method that remembers a file extension without adding it.
Added created file cleanup code.