updated to use functions for workDir and cfg compilation
crabJobs done
crab functionality added