Comments and data structures

Some data structures have been changed.
Some comments added.