removed redundant variable setting and switched version
made certificate paths parameters
added the ability to add a test workflowtype to speed testing