created a results output file. Plus smal cosmetic changes.