Sanatized input, made start header with short program description, check if log file exists