added bam build script
started abstracted mmap