Added typedefs to all structs for easier readin and programming