Added a utility function to output the classMapping to a file.