added functions to get all fieldnames of a structure and save them recursively. right now, the saving function only works if everything is a scalar structure array...