Added loggin library, changed example and README.md