Fixed the iterator on the points for loop and changed the export from be...

...ing the master selected to being the final selected.