Fixed a few bugs.  Added comments near tricky lines.  Achieved a generally working status.
Added an 'else; false' to avoid false matches on non-existent files.