Replaced all uses of writeTo with the new operator in unit tests, test scripts and readme.
take
replace