Fixed makefile and created a job generator