minor changes getCoordinates and saveInfo functions(removed some unnecessary variables, etc)