reformatted code - better indending etc, not changes
added scrollbars to TS window