fixed examples and removed logging