ir_flat_clean function

Cleans objects of class ir_flat