Removed debug printing
Fixed: return JSON data rather then string
This fixes#19 and partially #21