move bam_destroy1 (hunting down kernel panic?) and some simplifications in bamfile