fix reverse complement mapping for ambiguity codes
fix alignment cloning function
rename flags
implemented some changes toward libbam free bam input