added a small example section and fixed a logger bug