refactoring LoggingHandler to use simpler blocks
updating README to indicate how to write new handlers