Added different states. New States that are in use are currently: CREATED,FAILED,SCHEDULED,STARTED,FINISHED. Support for canceled and expired at a later date.
Fixed error in Job class where I added an emf for testing purposes.