introduce tojson methods and Exporter class
Merge pull request #9 from Algorithmix/jsonify

introduce tojson methods and Exporter class