Added scope file and created watch and digest functions