Added model_name parameter to build_model and write_file functions.
Dictionary written to file now sorted by trigram strings. Headers printed above model data.