Added code to save cluster centers to file.