Code cleaning and verification