formatted some stuff and changed the name of the searc results variable to @results because it's more intuitive