added description of internal data structures