cleanup examples and added logs.