Finished search

Search functional in Gold, various bug fixes and housekeeping.