Add support for nested specifications
Update README exmaple with nested struct