- added example code to readme
- preparsing data array for easier usage