added ct widget, some fixes and docs