First functional include/exclude.
Code cleanup, documentation.
Documentation (and minor code cleanup).
Remove debug code.
Use -x from exclude.
Remove whitespace, response to comment from @armooo.
Catch exception for invalid regular expressions.