General performance improved.

Now using TextBlock instead of RichTextbox.
Fix some memory leaks.
Locking scroll is temporarily disabled due to UI freezing problem.