Update & Error Fixes:

1) new subroutines for searching for directories
2) fixed an error when checking if a parameter exists