removed outs[] eveywhere
moved file dir walking to main.c
replaces three arguments in most calls with a single argument that is a structure.
updated