saving results

Not finished. More work needed