minor updates
Chang th to rd , st etc based on input

working on a log file