added JSON support, removed IDEA files and fixed test/packaging issues