added maximum size to caches
added vm.name and esx.name methods and cleaned up the code