Output twts and analysis
Minor changes