Update README with better examples.
Refactor to avoid duplicate codes.
Add isArray validation.
Bump version.