Added a lot of functions to loadjson. Latest working version