changed sequence.js to primergen.js and added integritycheck and bases counting funcs.