Adding context manager

Removing print hook and pebble