add logging and examples