writeTo method works correct now - tested
Merge remote-tracking branch 'origin/master'