Fix placement of parse error in condition
Fix typo in debug message
Initialize "found"
Clean up debug / info messages
Correct logic for "elsif"