added updateJSON methods, and directory watching