Add support for nested specifications
Update README example with nested struct