added IDL function bit_flag.pro to get bit flag and implemented new logic in badpix_aperture.pro to get all bits within aperture and return the bit flag corresponding to the set of all bits, which is now written to disk in the masked_list.txt files