refactor index.js
add search function to dictionary
finish reader algo

delete a 'foo' dictionary