updated readme to fix code examples that don't work