Added carriage returns to html, use trigger_error for logging.