added demo1
refactoring
Some refactoring and logging configuration
new version