Fixed all memory leaks in World (oops) and refined API to prevent them in client applications