Change title of window and fix bugs for displaying in different OS.
Some incomplete work on display tasks.