Added cache tidy up #5, also added a function to subfolder cache files.