Added path traversing and debug options
Added semi-recursive find matched paths and added globals