diff --git a/lib/nBodySim.cpp b/lib/nBodySim.cpp
index 66b823c3b3d1ea44ec3db140fb4acd2df0db9eb4..1701e28f15c06a3de2c810464990031203e1fb61 100644
--- a/lib/nBodySim.cpp
+++ b/lib/nBodySim.cpp
@@ -63,11 +63,11 @@ nBodySim::~nBodySim() {
 
 void nBodySim::runSimulation(double dt, unsigned nSteps) {
     const unsigned skip = 10;
-    std::ofstream file("../out/data.txt");
-    file << nParticles_ << " " << skip << " " << dt << std::endl;
+    std::ofstream positionsFile("../out/positions.dat");
+    positionsFile << nParticles_ << " " << skip << " " << dt << std::endl;
     for (unsigned i=0; i < nSteps; ++i) {
 
-        write2file(positions_, file, 3, skip);
+        write2file(positions_, positionsFile, 3, skip);
         Vector COM = getCenterOfMass();
 
         // Integrate with leapfrog
@@ -90,7 +90,7 @@ void nBodySim::runSimulation(double dt, unsigned nSteps) {
                                 << std::endl;
         updateTree();
     }
-    file.close();
+    positionsFile.close();
 }
 
 void nBodySim::updateForces() {
diff --git a/out/data.txt b/out/data.txt
deleted file mode 100644
index 17ad23a9e04344da6311ec2a575a3891d5b0f197..0000000000000000000000000000000000000000
--- a/out/data.txt
+++ /dev/null
@@ -1,120 +0,0 @@
- -6.6992e+13
--6.60576e+13
--6.55073e+13
--6.52215e+13
--6.51594e+13
--6.53159e+13
--6.56442e+13
--6.60801e+13
--6.64514e+13
--6.66628e+13
--6.68389e+13
--6.69497e+13
--6.69661e+13
--6.69953e+13
--6.70412e+13
--6.70578e+13
--6.70686e+13
--6.70099e+13
--6.69913e+13
--6.69693e+13
- -6.7031e+13
--6.70585e+13
--6.70279e+13
--6.69943e+13
--6.70039e+13
- -6.6982e+13
--6.69542e+13
--6.69374e+13
--6.69678e+13
--6.69919e+13
--6.70018e+13
--6.70132e+13
--6.70079e+13
--6.69618e+13
--6.68973e+13
--6.68512e+13
--6.68523e+13
--6.68732e+13
--6.68939e+13
--6.68475e+13
--6.67637e+13
--6.66429e+13
--6.65647e+13
--6.65389e+13
--6.65599e+13
--6.66045e+13
--6.66335e+13
--6.66808e+13
--6.67007e+13
--6.66669e+13
- -6.6593e+13
- -6.6522e+13
--6.64481e+13
--6.64263e+13
--6.63906e+13
--6.63711e+13
--6.63565e+13
--6.63748e+13
--6.63652e+13
--6.63837e+13
--6.64198e+13
--6.64334e+13
--6.63986e+13
--6.63763e+13
--6.63939e+13
--6.63913e+13
--6.64133e+13
--6.64861e+13
-  -6.658e+13
--6.66823e+13
--6.67645e+13
--6.67906e+13
--6.67192e+13
--6.66191e+13
--6.65598e+13
--6.64593e+13
--6.63576e+13
--6.63242e+13
--6.63543e+13
--6.63814e+13
- -6.6418e+13
--6.64551e+13
--6.64566e+13
--6.64512e+13
--6.64504e+13
--6.64743e+13
--6.65321e+13
--6.66088e+13
--6.66154e+13
--6.65544e+13
--6.64995e+13
--6.64576e+13
--6.64288e+13
--6.64392e+13
--6.64305e+13
--6.63964e+13
--6.63997e+13
--6.64191e+13
--6.63738e+13
--6.63268e+13
--6.63029e+13
--6.62779e+13
--6.62594e+13
--6.62474e+13
--6.62328e+13
--6.61983e+13
--6.61639e+13
--6.61139e+13
--6.61356e+13
--6.61979e+13
--6.62031e+13
--6.62073e+13
--6.62188e+13
--6.63118e+13
--6.64291e+13
--6.65251e+13
--6.66092e+13
--6.66771e+13
--6.67361e+13
--6.67431e+13
\ No newline at end of file