Refactoring

Changing `locals` to `data`
Changing `render` to `flatten`
Updating README.md
0.1.7