Clean main file