json code is working, some bugs fixed in author dict updating functions