moved DependencyPattern to top of file
added findAllIn for all document