added regex functionality
added regex functionality
finished refactoring and commenting findtrack code