- Add <!DOCTYPE html> to output - Avoid closing/reopening logfile - Use C++ instead of C where possible