Added seperator to flatten and unflatten

I added the options to change the default seperators