Updated results and search modules

Noticed that the function wasn't following camel case format. Added
comments where necessary.