remove prints and convert indent
set debug 0 in search
print error when dictionary fails to open