added a way to read the window criteria and a way to set starting workspace for a program.