fixed missing commas in json data, more procedures and functions complete