clearCache documented and renamed

Also added more functionalities.