Add makefile
Fix template loading path