Still working on final merge.  Close to being done, but curently getting a segfault.
Final Version, works great on an arbitrary number of directories and is well commented throughtout.