Old pre script deleted. Typo in histogram generator fixed.
Script modification and clean up. Skeleton for HTML report.