Updated Makefile to use pdflatex instead of xetex because xetex did not work for me.
Fix for one of the algorithm types.
Changing names of files to make them more generic.