Changed indent, parameters input and logfile