fix invalid json
Merge pull request #4 from robinboehm/patch-1

fix invalid json
remove global var and split concepts to own files