Adds javadoc documentation in Search class