reduce the delay between save/load operations

delay caused by thread.join call and maybe bad architecture
various api improvements

fix crash in fileExistsAtPath due to zero path