Updates to Search and Array building

to be finished