added option for silent run and added tcl-mode hooks for expect