Added an update_local_positions_file method to update files.
Now implements the update_local_positions_file method.
Greatly simplified and modularized the way this script works.