updated the push commands to use less lines
wrote code for the directory processing