updated makefile. minor modifications to writer.c