Update README, and little refactoring
Add '$valid' feature
Add example
Merge pull request #1 from cuusoo/dev

Add '$valid' feature