Separate file for get_file_lock
Add batch_job_worker.m
Place subfunctions in separate files.
Split off more subfunctions