Minor chnages
fixed merge conflicts
Added file deletion code
code for refill memory cache added