moved logging to Logger class and added also separate BackgroundLogger
renamed
updated example