writing new file docscorer