Major changes after codereview at http://codereview.stackexchange.com/questions/48759/program-simulating-dictionary-using-file-handling