- refactor lots of code so it can be tested more easily, add tests, document tests in readme
- rename 'text' to 'regex' in usage message
- fix lots of style and refactoring issues
- use DOTALL in regex; now newlines won't stop highlighting. see 15
- make error messages easier to read
- other minor bugs