Add file export

Added capability of saving the rankings to a file.