Now auto scroll works.:
Now time is showed at the end.
Code cleanup added delete of pointers.