whitespace fixes
Updated to allow for multiple partial matches via @tjchaplin
Updated to allow for a mix of multiple and partial finds to work properly.
refactor of procedures used to determine a match and to get data to queue.  This was needed to make the nesting logic easier to understand, read, and work with.