Added bamfix.c and Makefile