Updates and Bug Fix

Updated both versions to first prompt to delete or search. Originally
there was a problem with the windows version locking the file, so the
code was moved to the beginning of the program.