Addresses Issue #250 "file caching in dnie driver" by removing the cache feature

Removal of cache, fixing a compiler warning and removing recursive functions.
Also some comments have been added to the code.