Fixed all type issues and added all functions necessary for actually being able to run things. Left to do is implementing runJob.