Add doc for mappping, gen_input_table and bam_to_linkage