Adding a bunch of functionality to the Simpleworkflow class and made the component stuff