wrote some methods to help with searching
added comments
moved methods into helper folder