updated logging
added basic example without callback handlers