Library cleaning and standardization