fix control flow in lookup script, add Sinatra script and index view, update Gemfile