Delete of unnecessary files. Small modification of the add_common function