stats can now be written at the end of sorting.
added exclude file.