Revised html generation.
Stopped deletion of rep.txt file.