added documentation for data structures