fifth commit

got badly coded search working needs a lot of tweaking