fixed json respons handles, added server documentation in comment, fixed long [] to JSONarray