Minor docs changes and new option to remove data after analysis
Moved named tuple definition to the module level, so it can be pickeld, when running distributed analysis