update to tex template
some paths corrected in configuration file and main script
student report r->php migration stage 2 finished