Write files to "objects" directory