Create def.h

Definitions of structures and prototypes