Updated examples, added logging

Updated examples, added logging