Now removes old entries from the index

Whenever a file is indexed the old records for that files are
removed.

Also removed some superfluous logging and catch an exception that
I sometimes get when trying to access the offset of a tree.