first implementation of isVaild for NucleicAcid & small fixes