Added functionality to export tracks as shapefile and as comma separated values

Including API doc.