fix warning while compiling, fix examples