Optimization, memory leaks patched, file system and stats finished