Given that you won't publish the algorithm can you at least add an option to output the data in a .GPX format? That's the format I ultimately need it in and have written an app to convert the .CSV file to .GPX. I'd much rather have this as a one step process.