Add macros for accessing struct members
It might be more convenient to add macros for accessing certain struct members. As an alternative you could add (inline) functions. This would enable typechecking and (maybe) clean up errors, if trying to access invalid members. Also it would allow for better error handling