Added typedefs to structs

- typedef’d structs
- added named parameters