fixed tclsh output bug; avoided a couple uninit var warnings