Moved timer outside of if and added average
Moved debug to separate commands
Commented out test - fix later
Modified regex so it was cleaner
refactored regex and fixed tests

-Created a single test in the compiled regex instead of carrying an exclude
list in an if/else statement

-Changed file structure so the regex only checks file names not
 name.extensions to remove the .doc .png etc if/else statement

 -Changed tests to respect this new function