fixed copyrights, added NullCache, moved caches to separate directory, fixed misc errors