remove control structure characters from template
ignore .. and . in script
better makefile
fix for segfault incorporated