added script to remove singletons and begin dealing with rarefication