updating the code sample and readme text