fix README.md example code
Add spec