changed language data source & refactored code

- read data from json object instead of resource array
- refactored adapters
- refactored MainActivity initialization