add jout to create log file of output
removed dead files