restructured and compiling
connections and json parsing working