Fix memory leaks in command parsing
Add --world-size option