Added a few comments to make data structures clearer.