Added expanded parameter

Now you can pass expand parameter to customize the level at which the output switches from the expanded representation to the inline one in YML file