Added example coordinates file.
factorizing update locations function