added all data structures and functions in StructureDefs.cpp and StructureDefs.h