[Issue286] Add support for atomic file renaming

See #286.
Hi all,
I have changed Logging configuration to DEBUG Level.