adds main file