added functionality to run and close Revit so that batches can run
fixed problem with null PrintToFileName