Removed dircache because it's depricated. Added some comments.