added palindrome and fixed up errors in Makefile and factor