Fix README

Some syntax error and missing imports for the example.