added readme and simplified the example