change the code layout, remove reading of the dict,
make some variables global and add some new functons
Merge pull request #11 from nelly-hateva/deletion

change the code layout, remove reading of the dict,