removed process_child_dir subroutine. addedd better filename parsing. reduced amount of disk access required.