Moved function prototypes to bad.h
Half working search function
Scrap search function. Come back later
Forgot to change read_config to use new open_file