allow for variable length header
updated readme for new C program

closes 1