Changing output from terminal to html file, updating script slightly.