Generate annot, bin_annot files and ensure principal typing