edited package.json for npm registration
applied indexed search to query function