working JSON on user interface
first major code overhaul, complete.