Fixed many mem-mapped file issues.  Added header entry to file.