Fixed a problem with writing the positions to both an .xyz- and a .txt-
Fixing a tiny merge conflict.