formating of commands and new lines