fixup c++ compilation

and add some docs for the job template stuff