Adds some comments and fixes a possible segfault in GameModel.