added cache class, added auto verifying directories
clean code
new changes