1. Fixed "exit" problem
2. Corrected some of the regexes