Added support for contiguous allocation.

Added some comments.