reorganized code; set JSON standard; removed cruft